package com.itheima.day05.entity;

import java.io.Serializable;

public class Order implements Serializable {
    private String orderId;
    private String productName;
    private int priority; // 优先级，数值越大优先级越高

    // 构造函数、Getter和Setter
    public Order() {}

    public Order(String orderId, String productName, int priority) {
        this.orderId = orderId;
        this.productName = productName;
        this.priority = priority;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public int getPriority() {
        return priority;
    }

    public void setPriority(int priority) {
        this.priority = priority;
    }

    @Override
    public String toString() {
        return "Order{" +
                "orderId='" + orderId + '\'' +
                ", productName='" + productName + '\'' +
                ", priority=" + priority +
                '}';
    }
}